<?php
class News_Model_DbTable_News extends Zend_Db_Table_Abstract {
	protected $_name = 'news';

	protected $_dependentTables = array(
		'Site_Model_DbTable_HasNews'
    );

	protected $_referenceMap    = array(
        'User' => array(
            'columns'           => 'user_id',
            'refTableClass'     => 'User_Model_DbTable_User',
            'refColumns'        => 'id',
            'refColumnsAsName'  => 'name',
            'onDelete'		=> self::CASCADE
        )
    );
}